package
{
	
	public class ItemManager extends Manager
	{
		
		private var _itemList:Array;
		
		public function ItemManager()
		{
			
			this._itemList = [];
			
		}
		
		public function set itemList(list:Array):void
		{
			
			this._itemList = list;
			
		}
		
		public static function getItemByID(itemID:int):Object
		{
			
			var i:int = 0;
			var o:Object = null;
			var n:Number = this.itemList.length;
			
				if (n > 0)
				{
					
					while (i < this.itemList.length)
					{
						
						o = this.itemList[i] as Item;
						
							if (o.base.intID == itemID)
							{
								
								return o;
								i++;
								
							}
					}
				}
				
				return null;
				
		}
	}
}